Move G_END_DECLS before the #endif in gtkitemfactory.h
authorChristian Dywan <christian@twotoasts.de>
Sat, 4 Apr 2009 11:32:09 +0000 (13:32 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 4 Apr 2009 11:40:12 +0000 (13:40 +0200)
Bug 577650 – gtkitemfactory.h fails to compile

Place G_END_DECLS inside conditionals, otherwise C++ compilers
will see a closing curly bracket when including the file for
the second time.

gtk/gtkitemfactory.h

index 0e71f4886adb0c88e961b50ee10783448decd518..5c57b8032e4cb4d09c425d3c9505d93ce951e81c 100644 (file)
@@ -228,10 +228,9 @@ void       gtk_item_factory_create_menu_entries (guint              n_entries,
 void   gtk_item_factories_path_delete     (const gchar         *ifactory_path,
                                            const gchar         *path);
 
-#endif /* !GTK_DISABLE_DEPRECATED */
-
-
 G_END_DECLS
 
+#endif /* !GTK_DISABLE_DEPRECATED */
+
 #endif /* __GTK_ITEM_FACTORY_H__ */